package com.microservices.auth.model.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;

import java.io.Serial;

/**
 * 权限表
 *
 * @author daiqiaohong
 * @since 2025年1月13日
 */
@Getter
@Setter
@TableName("permission")
@Schema(description = "权限表")
public class PermissionEntity extends BaseEntity {

    @Serial
    private static final long serialVersionUID = 1L;

    @TableField("permission_code")
    @Schema(description = "权限Code")
    private String permissionCode;

    @TableField("permission_name")
    @Schema(description = "权限名称")
    private String permissionName;

    @TableField("parent_id")
    @Schema(description = "父级ID")
    private Long parentId;

    @TableField("type")
    @Schema(description = "权限类型（0菜单 1页面元素 2功能操作）")
    private int type;

    @TableField("description")
    @Schema(description = "权限描述")
    private String description;

    @TableField("status")
    @Schema(description = "状态（0正常 1停用）")
    private int status;

}
